﻿#ifndef CONTROLCOMMAND_H
#define CONTROLCOMMAND_H

#include "/rapidjson/AIGCJson.hpp"

using namespace std;
using namespace aigc;

/**
 * @brief 服务端发给设备端的控制命令报文(UDP, 服务端->设备端)
 */
class ControlCommand
{
public:
    string cmdType = "CONTROL";
    string requestNo;
    int    deviceNo;
    int    controlWord;
    int    controlParam;

    AIGC_JSON_HELPER(cmdType, requestNo, deviceNo, controlWord, controlParam)
};

#endif // CONTROLCOMMAND_H
